package com.xiaoq.shop.repository;

import com.xiaoq.shop.entity.ShopPayTypeEntity;

/**
 * Created by chenjh on 2017/11/30.
 */
public interface IShopPayTypeRepository {

    /**
     * 保存支付方式
     * @param shopPayTypeEntity
     * @return
     */
    boolean save(ShopPayTypeEntity shopPayTypeEntity);

    /**
     * 根据 shopPayTypeEntity中的属性查询ShopPayTypeEntity
     * @param shopPayTypeEntity
     * @return
     */
    ShopPayTypeEntity getByCommon(ShopPayTypeEntity shopPayTypeEntity);

    /**
     *  根据shopId修改ShopPayTypeEntity
     * @param shopPayTypeEntity
     * @return
     */
    boolean updateById(ShopPayTypeEntity shopPayTypeEntity);

}
